package itsm.isperp.framework.quartz.executor;

import itsm.isperp.framework.quartz.domain.JobDefinition;
import itsm.isperp.framework.quartz.service.IJobService;

import org.quartz.impl.JobDetailImpl;

/**
 * 
 * 一个自定义作业扫描执行器，在接口Job中可以通过此类获取到定义的详细内容
 * 
 * @author JETSONLEE
 * 
 * @param <T>
 *            实现JobDefinition的实体
 */
public class ScanJobExecutorDetail<T extends JobDefinition> extends
		JobDetailImpl {
	private static final long serialVersionUID = 5235476854106861377L;

	private IJobService<T> jobService;

	public ScanJobExecutorDetail(IJobService<T> jobService) {
		this.jobService = jobService;
	}

	public IJobService<T> getJobService() {
		return jobService;
	}

	public void setJobService(IJobService<T> jobService) {
		this.jobService = jobService;
	}
}
